package cn.longge.service.impl;

import cn.longge.entity.AppVersion;
import cn.longge.service.IAppVersion;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AppVersionServiceImpl extends BaseServiceImpl<AppVersion> implements IAppVersion {



    @Override
    public PageInfo selectByPage(int page, int size) {
        PageHelper.startPage(page,size);
        AppVersion appVersion = new AppVersion();
        appVersion.setDelFlag("0");
        List<AppVersion> appVersions = mapper.select(appVersion);
        PageInfo pageInfo = new PageInfo(appVersions);
        return pageInfo;
    }
}
